package com.hdax.dm.rest;

import com.hdax.dm.common.api.PayControllerApi;
import com.hdax.dm.pay.DmTrade;
import com.hdax.dm.service.TradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayRestMapper implements PayControllerApi {

    @Autowired
    private TradeService tradeService;

    @Override
    public Boolean save(DmTrade trade) {
        return tradeService.save(trade);
    }
}
